from django.conf.urls.defaults import *
from tjango.modules.models import system
system.project_name = "libros"
from tjango.displayform.views import *
from tjango.autocomplete.views import *
from tjango.calculated.views import *
from tjango.modules.views import index,querys
from tjango.modules.models import model__action
from libros.prestamos.views import *
from libros import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()


urlpatterns = patterns('',

    (r'^libros/admin/prestamos/estado_de_prestamos/$',Estado_de_prestamos().view),

    # Uncomment the next line to enable the admin:

    (r'^tjango-example/admin/(?P<app_label>\w+)/(?P<model_name>\w+)/(?P<rest_of_url>\d+)/edit/$', admin.site.model_page),
    (r'^tjango-example/admin/prestamos/resumen_de_cuenta/$',Resumen_de_cuenta().view),
    (r'^tjango-example/admin/(?P<app_label>\w+)/(?P<model_name>\w+)/(?P<id>\d+)/(?P<action>\w+)/$', model__action),
    (r'^tjango-example/admin/(?P<app_label>\w+)/(?P<model_name>\w+)/(?P<rest_of_url>\d+)/$', view_form),   
    (r'^tjango-example/calculated/$', calculated_server), 
    (r'^tjango-example/autocomplete_id/(?P<cls>\w+)/(?P<id>\d+)/$', autocomplete_id), 
    (r'^tjango-example/autocomplete/(?P<cls>\w+)/(?P<field>\w+)/$', autocomplete), 
    (r'^tjango-example/media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
	
    (r'^tjango-example/admin/$',index),
    (r'^tjango-example/admin/(.*)', admin.site.root),


)
